package com.project.myPackage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.myPackage.entity.Comments;
import com.project.myPackage.mapper.CommentsMapper;
import com.project.myPackage.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CommentsServiceImpl extends ServiceImpl<CommentsMapper, Comments> implements CommentsService {
    @Autowired
    private CommentsMapper commentsMapper;

    @Override
    public  List<Map<String,Object>> getList(Integer product_id){
        return commentsMapper.getList(product_id);
    }
}
